package com.zzx.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzx.auth.model.SysUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


/**
 * 系统用户仓储层
 */
public interface SysUserMapper extends BaseMapper<SysUser> {


    /**
     * 获取系统用户
     *
     * @param userName 用户名
     * @return 用户对象
     */
    @Select("SELECT * FROM sys_user where user_name = #{userName} and del_flag = 0")
    SysUser selectUserByUserName(@Param("userName") String userName);
}
